﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using System.ComponentModel.DataAnnotations;
using System.ServiceModel.DomainServices.Server;


namespace demo.Web.PresentationModel
{
    public class PMEmployee
    {
        [Key]
        public string ID { get; set; }

        public string Name { get; set; }
        public string Addr { get; set; }
        public string Ext { get; set; }

        public string DeptID { get; set; }

        [Include]
        [Association("emp_dept", "DeptID", "ID", IsForeignKey=true)]
        public PMDepartment Department { get; set; }

    }
}